package com.hson.demo.web.base.controller.activity;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hson.demo.base.app.ApiModel;
import com.hson.demo.base.remote.hessian.annotations.HessianClient;
import com.hson.demo.soa.remote.ActivityServiceRemote;
import com.hson.demo.web.base.controller.AbstractController;

/**
 * 活动
 * @author:chenhs E-mail:hson08_chen@163.com
 * Created on 2017年5月26日 下午1:46:17
 */
@SuppressWarnings("rawtypes")
@Controller
public class ActivityController extends AbstractController {

	@Autowired
	@HessianClient("soa")
	private ActivityServiceRemote remote;
	
	//抽奖
	@RequestMapping
	@ResponseBody
	public ApiModel luckyDraw(){
		remote.luckyDraw();
		return buildSuccMsg("success!");
	}
}
